﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainPage.aspx.cs" Inherits="Stone.Web.pages.MainPage" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<%--<%@ Register Src="Patient.ascx" TagName="Patient" TagPrefix="uc1" %>--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
    <title>上海长海医院结石病数据管理系统</title>
    
    <script type="text/javascript">
        function onReady() {
            //txtUserName.focus();
        }

        //主页面
//        function birthDateRenderer(v) {
//            if (Ext.isEmpty(v)) return;
//            var birthDate = v.replace(/-/g, "/");
//            birthDate = new Date(birthDate);
//            return birthDate.format('Y-m-d');
//        }

        function AddPatient() {
            Ext.net.DirectMethods.AddPatient();
        }

        function EditPatient() {
            var panel = Ext.getCmp("PatientGridPanel");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;
                Ext.net.DirectMethods.GetPatientInfo(rec.get("id"), {
                    success: function(result) {
                        if (!result) Ext.Msg.alert("错误", "获取病人信息失败！");
                    }
                });
            }
            else {
                Ext.Msg.alert("提示", "请先选择要编辑的病人！");
                return;
            }
        }
        
        function DeletePatient() {
            var panel = Ext.getCmp("PatientGridPanel");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;

                Ext.Msg.confirm("信息", "确定要删除该病人信息？", function(btn) {
                    if (btn == 'yes') {
                        Ext.net.DirectMethods.DeletePatient(rec.get("id"), {
                            success: function(result) {
                                if (result) {
                                    Ext.getCmp('PagingToolbar1').changePage(1);
                                    Ext.Msg.alert('信息', '删除成功!');
                                }
                                else {
                                    Ext.Msg.alert("错误", "删除病人信息失败！");
                                }
                            }
                        });
                    }
                });
            }
            else if (selectCount > 1) {
                var selections = selectionModel.getSelections();
                var patientIds = "";
                for (var i = 0; i < selectCount; i++) {
                    patientIds = patientIds + selections[i].data.id + ",";
                }
                Ext.Msg.confirm("信息", "确定要删除这些病人信息？", function(btn) {
                    if (btn == 'yes') {
                        Ext.net.DirectMethods.DeletePatient(patientIds,{
                            success: function(result) {
                                if (result) {
                                    Ext.getCmp('PagingToolbar1').changePage(1);
                                    Ext.Msg.alert('信息', '删除成功!');
                                }
                                else {
                                    Ext.Msg.alert("错误", "删除病人信息失败！");
                                }
                            }
                        });
                    }
                });
            }
            else {
                Ext.Msg.alert("提示", "请先选择要删除的病人！");
                return;
            }
        }
        
        function RowSelect() {
            var panel = Ext.getCmp("PatientGridPanel");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;
                Ext.getCmp("btnEdit").enable();
                Ext.getCmp("btnDel").enable();
            }
            else if (selectCount > 1) {
                var selections = selectionModel.getSelections();
                Ext.getCmp("btnEdit").disable();
            }
        }

        function RowDeselect() {
            var panel = Ext.getCmp("PatientGridPanel");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 0) {
                Ext.getCmp("btnEdit").disable();
                Ext.getCmp("btnDel").disable();
            }
            else if (selectCount == 1) {
                Ext.getCmp("btnEdit").enable();
            }
        }

        function RowDbClick(grid, rowIndex, e) {
            var rec = grid.getStore().getAt(rowIndex);
            Ext.net.DirectMethods.GetPatientInfo(rec.get("id"), {
                success: function(result) {
                    if (!result) Ext.Msg.alert("错误", "获取病人信息失败！");
                } 
            });
        }

        function SavePatient() {
            if (!checkValidBeforeCommit(Ext.getCmp('PanelBasicInfo'), Ext.getCmp('PanelHistory'), Ext.getCmp('PanelHospital'))) return;
            Ext.net.DirectMethods.SavePatient({
                success: function(result) {
                    if (result) {
                        Ext.getCmp('PagingToolbar1').changePage(1);
                        //Ext.Msg.alert('信息', '保存成功!');
                        return true;
                    }
                    else {
                        //Ext.Msg.alert('错误', '保存病人信息失败!');
                        return false;
                    }
                }
            });
        }

        //就医信息
        function AddHospitalInfo() {
            Ext.net.DirectMethods.AddHospitalInfo();
        }

        function EditHospitalInfo() {
            var panel = Ext.getCmp("GridPanelHospital");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;
                Ext.net.DirectMethods.GetHospitalInfo(rec.get("id"), {
                    success: function(result) {
//                        if (result) 
//                            Ext.getCmp("PagingToolbar2").changePage(1);
//                        else
                            if (!result) Ext.Msg.alert("错误", "获取病人就医信息失败！");
                    }
                });
            }
            else {
                Ext.Msg.alert("提示", "请先选择要编辑的就医信息！");
                return;
            }
        }
        
        function DeleteHospitalInfo() {
            var panel = Ext.getCmp("GridPanelHospital");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;

                Ext.Msg.confirm("信息", "确定要删除该就医信息？", function(btn) {
                    if (btn == 'yes') {
                        Ext.net.DirectMethods.DeleteHospitalInfo(rec.get("id"),{
                            success: function(result) {
                            if (result)
                                Ext.Msg.alert('信息', '删除成功!');
                             else
                                Ext.Msg.alert("错误", "删除病人就医信息失败！");
                            }
                        });
                    }
                });
            }
            else if (selectCount > 1) {
                var selections = selectionModel.getSelections();
                var hospitalIds = "";
                for (var i = 0; i < selectCount; i++) {
                    hospitalIds = hospitalIds + selections[i].data.id + ",";
                }
                Ext.Msg.confirm("信息", "确定要删除这些病人信息？", function(btn) {
                    if (btn == 'yes') {
                        Ext.net.DirectMethods.DeleteHospitalInfo(hospitalIds, {
                            success: function(result) {
                                if (result) Ext.Msg.alert('信息', '删除成功!');
                                else Ext.Msg.alert("错误", "删除病人信息失败！");
                            }
                        });
                    }
                });
            }
            else {
                Ext.Msg.alert("提示", "请先选择要删除的病人！");
                return;
            }
        }

        function SaveHospitalInfo() {
            if (!checkValidBeforeCommit(Ext.getCmp('PanelHospitalChemistry'), Ext.getCmp('PanelHospitalOptics'), Ext.getCmp('PanelHospitalSurgery'))) return;
            if (Ext.getCmp('DateFieldHospitalInfo').getValue() == null) {
                Ext.Msg.alert('错误', '请先选择就医时间!');
                return;
            }
            Ext.net.DirectMethods.SaveHospitalInfo({
                success: function(result) {
                    if (result) {
                        Ext.getCmp("PagingToolbar2").changePage(1);
                        // Ext.Msg.alert('成功', '保存病人就医信息成功!');
                    }
                    else {
                        //Ext.Msg.alert('错误', '保存病人就医信息失败!');
                    }
                }
            });
        }
        

        function HospitalRowDbClick(grid, rowIndex, e) {
            var rec = grid.getStore().getAt(rowIndex);
            Ext.net.DirectMethods.GetHospitalInfo(rec.get("id"), {
                success: function(result) {
//                if (result) 
//                    Ext.getCmp("PagingToolbar2").changePage(1);
//                else
                    if (!result) Ext.Msg.alert("错误", "获取病人就医信息失败！");
                } 
            });
        }

        function HospitalRowSelect() {
            var panel = Ext.getCmp("GridPanelHospital");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 1) {
                var rec = selectionModel.getSelected();
                if (rec == null) return;
                Ext.getCmp("ButtonEditHospital").enable();
                Ext.getCmp("ButtonDelHospital").enable();
            }
            else if (selectCount > 1) {
                var selections = selectionModel.getSelections();
                Ext.getCmp("ButtonEditHospital").disable();
            }
        }

        function HospitalRowDeselect() {
            var panel = Ext.getCmp("GridPanelHospital");
            var selectionModel = panel.getSelectionModel();
            var selectCount = selectionModel.getCount();
            if (selectCount == 0) {
                Ext.getCmp("ButtonEditHospital").disable();
                Ext.getCmp("ButtonDelHospital").disable();
            }
            else if (selectCount == 1) {
            Ext.getCmp("ButtonEditHospital").enable();
            }
        }


        function UploadOpticsB() {
            Ext.net.DirectMethods.UploadFileOpticsB({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadOpticsCT() {
            Ext.net.DirectMethods.UploadFileOpticsCT({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadOpticsCTU() {
            Ext.net.DirectMethods.UploadFileOpticsCTU({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadOpticsKUBIVP() {
            Ext.net.DirectMethods.UploadOpticsKUBIVP({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadOpticsECT() {
            Ext.net.DirectMethods.UploadFileOpticsECT({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadSurgeryRecord() {
            Ext.net.DirectMethods.UploadFileSurgeryRecord({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadSurgeryKidneyDSARecord() {
            Ext.net.DirectMethods.UploadFileSurgeryKidneyDSARecord({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }

        function UploadSurgeryKidneyRecord() {
            Ext.net.DirectMethods.UploadFileSurgeryKidneyRecord({ 
                success: function(result) {
                    if (result)
                        Ext.Msg.alert("成功", "文件上传成功!");
                    else
                        if (!result) Ext.Msg.alert("错误", "文件上传失败！");
                }
            });
        }
        

        //高级查询页面
        function AdvanceQueryPatient() {
            Ext.net.DirectMethods.AdvanceQueryPatient({
                success: function(result) {
                    if (result) {
                        if (Ext.getCmp("ComboBoxQuery1Item").getStore().getTotalCount() > 0)
                            Ext.getCmp("ComboBoxQuery1Item").setValue(Ext.getCmp("ComboBoxQuery1Item").getStore().getAt(0).get("text"));
                        if (Ext.getCmp("ComboBoxQuery2Item").getStore().getTotalCount() > 0)
                            Ext.getCmp("ComboBoxQuery2Item").setValue(Ext.getCmp("ComboBoxQuery2Item").getStore().getAt(0).get("text"));
                        if (Ext.getCmp("ComboBoxQuery3Item").getStore().getTotalCount() > 0)
                            Ext.getCmp("ComboBoxQuery3Item").setValue(Ext.getCmp("ComboBoxQuery3Item").getStore().getAt(0).get("text"));
                    }
                }
            });
        }

        function ComboBoxQuery1ChemistrySelect(combo,record,index) {
            Ext.net.DirectMethods.ComboBoxQuery1ChemistrySelect(index, {
                success: function(result) {
                    if (result) {
                        if (Ext.getCmp("ComboBoxQuery1Item").getStore().getTotalCount() > 0) {
                            Ext.getCmp("ComboBoxQuery1Item").setValue(Ext.getCmp("ComboBoxQuery1Item").getStore().getAt(0).get("text"));
                            Ext.net.DirectMethods.ComboBoxQuery1ItemSelect(0,Ext.getCmp("ComboBoxQuery1Item").getStore().getAt(0).get("value"));
                        }
                    }
                }
            });
        }

        function ComboBoxQuery1ItemSelect(combo, record, index) {
            Ext.net.DirectMethods.ComboBoxQuery1ItemSelect(index,null);
        }

        function ComboBoxQuery2ChemistrySelect(combo,record,index) {
            Ext.net.DirectMethods.ComboBoxQuery2ChemistrySelect(index, {
                success: function(result) {
                    if (result) {
                        if (Ext.getCmp("ComboBoxQuery2Item").getStore().getTotalCount() > 0) {
                            Ext.getCmp("ComboBoxQuery2Item").setValue(Ext.getCmp("ComboBoxQuery2Item").getStore().getAt(0).get("text"));
                            Ext.net.DirectMethods.ComboBoxQuery2ItemSelect(0,Ext.getCmp("ComboBoxQuery2Item").getStore().getAt(0).get("value"));
                        }
                    }
                }
            });
        }

        function ComboBoxQuery2ItemSelect(combo, record, index) {
            Ext.net.DirectMethods.ComboBoxQuery2ItemSelect(index,null);
        }

        function ComboBoxQuery3ChemistrySelect(combo,record,index) {
            Ext.net.DirectMethods.ComboBoxQuery3ChemistrySelect(index, {
                success: function(result) {
                    if (result) {
                        if (Ext.getCmp("ComboBoxQuery3Item").getStore().getTotalCount() > 0) {
                            Ext.getCmp("ComboBoxQuery3Item").setValue(Ext.getCmp("ComboBoxQuery3Item").getStore().getAt(0).get("text"));
                            Ext.net.DirectMethods.ComboBoxQuery3ItemSelect(0,Ext.getCmp("ComboBoxQuery3Item").getStore().getAt(0).get("value"));
                        }
                    }
                }
            });
        }

        function ComboBoxQuery3ItemSelect(combo, record, index) {
            Ext.net.DirectMethods.ComboBoxQuery3ItemSelect(index,null);
        }

        function QueryPatients() {
            Ext.net.DirectMethods.QueryPatients({
                success: function(result) {
                    if (result) {
                        Ext.getCmp("PagingToolbar1").changePage(1);
                    }
                }
            });
        }


        //病人信息页面
        function AddHospitalInfo() {
            //if (!SavePatient()) return;
            Ext.net.DirectMethods.AddHospitalInfo();
        }
        
        function RadioSurgerySelect(radioGroup,checked){
            if (checked.id == 'RadioSurgeryKidney')
            { Ext.getCmp("PanelSurgeryKidney").enable(); Ext.getCmp("PanelSurgerySoft").disable(); Ext.getCmp("PanelSurgeryHard").disable(); Ext.getCmp("PanelSurgeryPG").disable(); Ext.getCmp("PanelSurgerySperm").disable(); Ext.getCmp("TabPanelSurgery").setActiveTab(0); }
            else if (checked.id == 'RadioSurgerySoft')
            { Ext.getCmp("PanelSurgeryKidney").disable(); Ext.getCmp("PanelSurgerySoft").enable(); Ext.getCmp("PanelSurgeryHard").disable(); Ext.getCmp("PanelSurgeryPG").disable(); Ext.getCmp("PanelSurgerySperm").disable(); Ext.getCmp("TabPanelSurgery").setActiveTab(1); }
            else if (checked.id == 'RadioSurgeryHard')
            { Ext.getCmp("PanelSurgeryKidney").disable(); Ext.getCmp("PanelSurgerySoft").disable(); Ext.getCmp("PanelSurgeryHard").enable(); Ext.getCmp("PanelSurgeryPG").disable(); Ext.getCmp("PanelSurgerySperm").disable(); Ext.getCmp("TabPanelSurgery").setActiveTab(2); }
            else if (checked.id == 'RadioSurgeryPG')
            { Ext.getCmp("PanelSurgeryKidney").disable(); Ext.getCmp("PanelSurgerySoft").disable(); Ext.getCmp("PanelSurgeryHard").disable(); Ext.getCmp("PanelSurgeryPG").enable(); Ext.getCmp("PanelSurgerySperm").disable(); Ext.getCmp("TabPanelSurgery").setActiveTab(3); }
            else if (checked.id == 'RadioSurgerySperm')
            { Ext.getCmp("PanelSurgeryKidney").disable(); Ext.getCmp("PanelSurgerySoft").disable(); Ext.getCmp("PanelSurgeryHard").disable(); Ext.getCmp("PanelSurgeryPG").disable(); Ext.getCmp("PanelSurgerySperm").enable(); Ext.getCmp("TabPanelSurgery").setActiveTab(4); }
        }

//        function RadioSurgerySelect2(radioGroup, checked) {
//            if (checked.id == 'RadioSurgeryKidney2')
//            { Ext.getCmp("PanelSurgeryKidney2").enable(); Ext.getCmp("PanelSurgerySoft2").disable(); Ext.getCmp("PanelSurgeryHard2").disable(); Ext.getCmp("TabPanelSurgery2").setActiveTab(0); }
//            else if (checked.id == 'RadioSurgerySoft2')
//            { Ext.getCmp("PanelSurgeryKidney2").disable(); Ext.getCmp("PanelSurgerySoft2").enable(); Ext.getCmp("PanelSurgeryHard2").disable(); Ext.getCmp("TabPanelSurgery2").setActiveTab(1); }
//            else if (checked.id == 'RadioSurgeryHard2')
//            { Ext.getCmp("PanelSurgeryKidney2").disable(); Ext.getCmp("PanelSurgerySoft2").disable(); Ext.getCmp("PanelSurgeryHard2").enable(); Ext.getCmp("TabPanelSurgery2").setActiveTab(2); }
//        }

        function checkValidBeforeCommit(fp1, fp2, fp3) {
//            if (!fp1.getForm().isValid() || !fp2.getForm().isValid() || !fp3.getForm().isValid()) {
//                Ext.Msg.show({
//                    title: '错误',
//                    msg: '请先更正无效内容项,再保存!',
//                    buttons: Ext.Msg.OK,
//                    icon: Ext.MessageBox.WARNING
//                });

//                return false;
//            } else {
                return true;
//            }
        }
        

    </script>
    <style type="text/css">
        .image
        {
             background-image:url("./images/logo.png");
             background-position:center bottom;
             background-repeat:no-repeat;
        }
    </style>
</head>

<body>
    <form runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" >
        <Listeners>
            <DocumentReady Handler="onReady();" />
        </Listeners>
    </ext:ResourceManager>
        
    <ext:Store ID="StorePatientInfo" runat="server" RemoteSort="true" OnRefreshData="StorePatientInfo_RefreshData">
        <AutoLoadParams>
            <ext:Parameter Name="start" Value="0" Mode="Raw" />
            <ext:Parameter Name="limit" Value="30" Mode="Raw" />
        </AutoLoadParams>
        <BaseParams>
            <ext:Parameter Name="searchText" Value="#{TextFieldFilterText}.getValue()" Mode="Raw"></ext:Parameter>
        </BaseParams>
        <SortInfo Field="id" Direction="DESC" />
        <Proxy>
            <ext:PageProxy />
        </Proxy>
        <Reader>
            <ext:JsonReader IDProperty="id">
                <Fields>
                    <ext:RecordField Name="id" Mapping="0" />
                    <ext:RecordField Name="name" Type="String" Mapping="1" />
                    <ext:RecordField Name="sex" Type="String" Mapping="2">
                    </ext:RecordField>
                    <ext:RecordField Name="birth" Type="String" Mapping="3" >
                        <%--<Convert Fn="birthDateRenderer" />--%>
                    </ext:RecordField>
                    <ext:RecordField Name="age" Type="String" Mapping="4" />
                    <ext:RecordField Name="no" Type="String" Mapping="5">
                    </ext:RecordField>
                    <ext:RecordField Name="height" Type="Int" Mapping="6" />
                    <ext:RecordField Name="weight" Type="Int" Mapping="7" />
                    <ext:RecordField Name="bmi" Type="String" Mapping="8"/>
                    <ext:RecordField Name="address" Type="String" Mapping="9" />
                    <ext:RecordField Name="postcode" Type="String" Mapping="10" />
                    <ext:RecordField Name="telephone" Type="String" Mapping="11" />
                    <ext:RecordField Name="cellphone" Type="String" Mapping="12" />
                    <ext:RecordField Name="comment" Type="String" Mapping="13" />
               </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
        
    <ext:Store ID="StoreHospital" runat="server" RemoteSort="true" OnRefreshData="StoreHospital_RefreshData" AutoLoad="false">
        <AutoLoadParams>
            <ext:Parameter Name="start" Value="0" Mode="Raw" />
            <ext:Parameter Name="limit" Value="20" Mode="Raw" />
        </AutoLoadParams>
        <SortInfo Field="time" Direction="DESC" />
        <Proxy>
            <ext:PageProxy />
        </Proxy>
        <Reader>
            <ext:JsonReader IDProperty="id">
                <Fields>
                    <ext:RecordField Name="id" Mapping="0" />
                    <ext:RecordField Name="time" Mapping="1" />
                    <ext:RecordField Name="chemistry" Mapping="2" />
                    <ext:RecordField Name="optics" Mapping="3" />
                    <ext:RecordField Name="surgery" Mapping="4" />
              </Fields>
            </ext:JsonReader>
        </Reader>
        <BaseParams>
            <ext:Parameter Name="patientId" Value="#{patientId}.getValue()" Mode="Raw"></ext:Parameter>
        </BaseParams>
    </ext:Store>

    <ext:Store runat="server" ID="StoreQuery1Item" AutoLoad="true" OnRefreshData="RefreshQuery1Item">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="text" Type="String" />
                    <ext:RecordField Name="value" Type="String" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>

    <ext:Store runat="server" ID="StoreQuery2Item" AutoLoad="true" OnRefreshData="RefreshQuery2Item">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="text" Type="String" />
                    <ext:RecordField Name="value" Type="String" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>

    <ext:Store runat="server" ID="StoreQuery3Item" AutoLoad="true" OnRefreshData="RefreshQuery3Item">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="text" Type="String" />
                    <ext:RecordField Name="value" Type="String" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>



    <ext:ViewPort ID="mainframeViewport" runat="server" Layout="border">
        <Items>
            <ext:Panel runat="server" ID="mainframeTopPanel" Height="54" Border="false" Region="North"
                        BodyStyle="background-color:transparent" Collapsible="true" Split="true" MaxHeight="56" MinHeight="56" CollapseMode="Mini" Cls="image">
                <Items>
                    <%--<ext:ToolbarSpacer Width="200" />
                    <ext:Label ID="titleLabel" runat="server" Text="上海长海医院结石病数据管理系统"></ext:Label>--%>
                    <%--<ext:Image runat="server" ImageUrl="./images/logo.png" Align="Middle" Height="35" AlternateText="上海长海医院结石病数据管理系统" Cls ="image"></ext:Image>--%>
                </Items>
            </ext:Panel>
            <ext:Panel ID="mainframeCenterPanel" runat="server" Border="false" Region="Center" Layout="Fit">
                <Items>
                    <ext:GridPanel runat="server" ID="PatientGridPanel" StoreID="StorePatientInfo" Frame="true" SelectionMemory="Enabled" AutoScroll="true">
                        <ColumnModel ID="Columnmodel1" runat="server">
                            <Columns>
                                <ext:Column ColumnID="name" DataIndex="name" Width="100" Header="姓名">
                                </ext:Column>
                                <ext:Column ColumnID="sex" DataIndex="sex" Width="50" Header="性别">
                                </ext:Column>
                                <ext:Column ColumnID="birth" DataIndex="birth" Width="100" Header="出生年月">
                                </ext:Column>
                                <ext:Column ColumnID="age" DataIndex="age" Width="50" Header="年龄">
                                </ext:Column>
                                <ext:Column ColumnID="no" DataIndex="no" Width="80" Header="住院号">
                                </ext:Column>
                                <ext:Column ColumnID="height" DataIndex="height" Width="60" Header="身高">
                                </ext:Column>
                                <ext:Column ColumnID="weight" DataIndex="weight" Width="60" Header="体重">
                                </ext:Column>
                                <ext:Column ColumnID="bmi" DataIndex="bmi" Width="60" Header="BMI">
                                </ext:Column>
                                <ext:Column ColumnID="address" DataIndex="address" Width="250" Header="家庭住址">
                                </ext:Column>
                                <ext:Column ColumnID="postcode" DataIndex="postcode" Width="80" Header="邮政编码">
                                </ext:Column>
                                <ext:Column ColumnID="telephone" DataIndex="telephone" Width="100" Header="电话">
                                </ext:Column>
                                <ext:Column ColumnID="cellphone" DataIndex="cellphone" Width="100" Header="手机">
                                </ext:Column>
                                <ext:Column ColumnID="comment" DataIndex="comment" Width="200" Header="其他">
                                </ext:Column>
                            </Columns>
                        </ColumnModel>
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModelTerminalConfig" runat="server">
                                <Listeners>
                                    <RowSelect Fn="RowSelect" />
                                    <RowDeselect Fn="RowDeselect" />
                                </Listeners>
                            </ext:CheckboxSelectionModel>
                        </SelectionModel>
                        <Listeners>
                            <RowDblClick Fn="RowDbClick" />
                        </Listeners>
                        <LoadMask ShowMask="true" Msg="正在获取数据。。。" />
                        <BottomBar>
                            <ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="25" StoreID="StorePatientInfo"
                                DisplayInfo="true" DisplayMsg="显示病人 {0} - {1} of {2}" EmptyMsg="没有病人可以显示">
                                <Items>
                                    <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                        <Items>
                                            <ext:ListItem Text="每页10条" Value="10" />
                                            <ext:ListItem Text="每页20条" Value="20" />
                                            <ext:ListItem Text="每页25条" Value="25" />
                                            <ext:ListItem Text="每页30条" Value="30" />
                                            <ext:ListItem Text="每页50条" Value="50" />
                                            <ext:ListItem Text="每页100条" Value="100" />
                                        </Items>
                                        <SelectedItem Text="每页30条" Value="30" />
                                        <Listeners>
                                            <Select Handler="#{PagingToolbar1}.pageSize=parseInt(record.data.value);#{PagingToolbar1}.doLoad(0);" />
                                        </Listeners>
                                    </ext:ComboBox>
                                </Items>
                            </ext:PagingToolbar>
                        </BottomBar>
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                    <%--<ext:CycleButton ID="btnFliterMenu" runat="server" ShowText="true" Icon="Zoom">
                                        <Menu>
                                            <ext:Menu ID="Menu1" runat="server">
                                                <Items>
                                                    <ext:CheckMenuItem ID="CheckMenuItemByName" runat="server" Text="病人姓名" Icon="Font" Checked="true" />
                                                    <ext:CheckMenuItem ID="CheckMenuItemByMAC" runat="server" Text="终端MAC地址" Icon="ChartOrganisation" />
                                                    <ext:CheckMenuItem ID="CheckMenuItemByLocation" runat="server" Text="终端安装位置" Icon="ApplicationHome" />
                                                </Items>
                                            </ext:Menu>
                                        </Menu>
                                    </ext:CycleButton>--%>
                                    <ext:ToolbarSpacer Width="10" />
                                    <ext:Label runat="server" Text="姓名"  LabelWidth="50"></ext:Label>
                                    <ext:ToolbarSpacer Width="10" />
                                    <ext:TextField ID="TextFieldFilterText" runat="server" Width="120" MaxLength="20" EnableKeyEvents="true">
                                        <Listeners>
                                            <KeyDown Handler="if (e.getKey() == 13) btnFliter.fireEvent('click');" />
                                        </Listeners>
                                    </ext:TextField>
                                    <ext:Button ID="btnFliter" runat="server" Text="搜索" Width="50" Icon="Zoom" >
                                        <Listeners>
                                            <Click Handler="#{hiddenQuerySql}.setValue(null);#{PagingToolbar1}.changePage(1);" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:ToolbarSpacer Width="50" />
                                    <ext:Button ID="btnQuery" runat="server" Text="高级查询" Width="100" StandOut="true">
                                        <Listeners>
                                            <Click  Fn ="AdvanceQueryPatient" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:ToolbarFill />
                                    <ext:Button ID="btnAdd" runat="server" Text="添加" Icon="Add">
                                        <Listeners>
                                            <Click Fn="AddPatient" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Button ID="btnDel" runat="server" Text="删除" Icon="Delete" Disabled="true">
                                        <Listeners>
                                            <Click Fn="DeletePatient" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Button ID="btnEdit" runat="server" Text="编辑" Icon="ApplicationFormEdit" Disabled="true">
                                        <Listeners>
                                            <Click Fn="EditPatient" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Hidden ID="hiddenQuerySql" runat="server" />
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:ViewPort>
    
<ext:Window ID="WindowPatientInfo" runat="server" Resizable="false" Width="800" Height="600" AutoShow="false" Modal="true" Hidden="true" 
     Constrain="true" Title="病人详细信息" Layout="Fit">
    <Items>
        <ext:TabPanel ID="PatientTabPanel" runat="server" ActiveTabIndex="0" Border="false" DeferredRender="false">
            <Items>
                <ext:FormPanel ID="PanelBasicInfo" runat="server" Title="基本信息" BodyStyle="padding:25px;">
                    <Items>
                        <ext:FormLayout ID="FormLayout1" runat="server">
                            <Anchors>
                                <ext:Anchor>
                                    <ext:Panel ID="Panel1" runat="server" Height="200" Border="false">
                                        <Items>
                                            <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                                                <Columns>
                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                        <ext:Panel ID="Panel2" runat="server" Header="false" Border="false">
                                                            <Defaults>
                                                                <ext:Parameter Name="MsgTarget" Value="side" />
                                                            </Defaults>
                                                            <Items>
                                                                <ext:FormLayout ID="FormLayout2" runat="server" LabelWidth="80">
                                                                    <Anchors>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:TextField ID="TextFieldName" runat="server" FieldLabel="姓名" 
                                                                                AllowBlank="false" BlankText="请输入病人姓名" MaxLength="20">
                                                                            </ext:TextField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:DateField ID="DateFieldBirth" runat="server" FieldLabel="出生日期" AllowBlank="false" Editable="false"></ext:DateField>
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldHeight" runat="server" FieldLabel="身高(cm)" MaxLength="5"
                                                                                 AllowDecimals="false" AllowNegative="false"></ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldBMI" runat="server" FieldLabel="BMI指数" MaxLength="5"
                                                                                 AllowDecimals="true" AllowNegative="false"></ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:TextField ID="TextFieldAddress" runat="server" FieldLabel="家庭地址" MaxLength="200">
                                                                            </ext:TextField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldTelephone" runat="server" FieldLabel="电话" MaxLength="12"
                                                                                 AllowDecimals="false" AllowNegative="false">
                                                                            </ext:NumberField>                                         
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:ComboBox ID="ComboBoxSex" runat="server" FieldLabel="性别" AllowBlank="false" Editable="false">
                                                                                <Items>
                                                                                    <ext:ListItem Text="女" Value="female" />
                                                                                    <ext:ListItem Text="男" Value="male" />
                                                                                </Items>
                                                                                <SelectedItem Text="男" Value="male" />
                                                                                <Listeners>
                                                                                    <Select Handler="if(index==0)Ext.getCmp('FieldSetMenses').show();else Ext.getCmp('FieldSetMenses').hide();" />
                                                                                </Listeners>
                                                                            </ext:ComboBox>                                     
                                                                        </ext:Anchor>
                                                                    </Anchors>
                                                                </ext:FormLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:LayoutColumn>
                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                        <ext:Panel ID="Panel3" runat="server"  Header="false" Border="false" >
                                                            <Defaults>
                                                                <ext:Parameter Name="MsgTarget" Value="side" />
                                                            </Defaults>
                                                            <Items>
                                                                <ext:FormLayout ID="FormLayout3" runat="server" LabelWidth="80">
                                                                    <Anchors>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:TextField ID="TextFieldNameAbbr" runat="server" FieldLabel="拼音缩写"   
                                                                                AllowBlank="true" BlankText="请输入病人姓名的拼音缩写" MaxLength="20" MaskRe="[A-Za-z]">
                                                                            </ext:TextField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldAge" runat="server" FieldLabel="年龄" MaxLength="3" 
                                                                                AllowDecimals="false" AllowNegative="false"></ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldWeight" runat="server" FieldLabel="体重(斤)" MaxLength="5"
                                                                             AllowDecimals="false" AllowNegative="false"></ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldNum" runat="server" FieldLabel="住院号" MaxLength="5"
                                                                             AllowDecimals="false" AllowNegative="false"></ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldPost" runat="server" FieldLabel="邮政编码" MaxLength="6" MinLength="6" 
                                                                            AllowDecimals="false" AllowNegative="false">
                                                                            </ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor Horizontal="75%">
                                                                            <ext:NumberField ID="NumberFieldCellphone" runat="server" FieldLabel="手机" MaxLength="11" MinLength="11"
                                                                                 AllowDecimals="false" AllowNegative="false">
                                                                            </ext:NumberField>                                        
                                                                        </ext:Anchor>
                                                                        <ext:Anchor>
                                                                            <ext:Hidden runat="server" ID="patientId" Text="">
                                                                            </ext:Hidden>
                                                                        </ext:Anchor>
                                                                    </Anchors>
                                                                </ext:FormLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:LayoutColumn>
                                                </Columns>
                                            </ext:ColumnLayout>
                                        </Items>
                                    </ext:Panel>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="88%">
                                    <ext:TextArea ID="TextAreaComment" runat="server" FieldLabel="其他" Height="100">
                                    </ext:TextArea>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="88%">
                                    <ext:FieldSet ID="FieldSetMenses" runat="server" Title="月经情况" Height="100" Hidden="true" >
                                        <Items>
                                            <ext:FormLayout ID="FormLayout4" runat="server">
                                                <Anchors>
                                                    <ext:Anchor>
                                                        <ext:Checkbox runat="server" ID="chkboxHasMenses" HideLabel="true" BoxLabel="月经有无" Height="30">
                                                        </ext:Checkbox>
                                                    </ext:Anchor>
                                                    <ext:Anchor>
                                                        <ext:Panel ID="Panel4" runat="server" Border="false" Height="30">
                                                            <Items>
                                                                <ext:ColumnLayout ID="ColumnLayout7" runat="server">
                                                                    <Columns>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel5" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Defaults>
                                                                                    <ext:Parameter Name="MsgTarget" Value="side" />
                                                                                </Defaults>
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout14" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:NumberField ID="NumberFieldMensesCycle" runat="server" FieldLabel="月经周期(天)" 
                                                                                                    MaxLength="3" AllowDecimals="false" AllowNegative="false"></ext:NumberField>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel8" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Defaults>
                                                                                    <ext:Parameter Name="MsgTarget" Value="side" />
                                                                                </Defaults>
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout15" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:NumberField ID="NumberFieldMensesDay" runat="server" FieldLabel="停经时间(天)" 
                                                                                                    MaxLength="3" AllowDecimals="false" AllowNegative="false"></ext:NumberField>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                    </Columns>
                                                               </ext:ColumnLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:Anchor>
                                                </Anchors>
                                            </ext:FormLayout>
                                        </Items>
                                    </ext:FieldSet>
                                </ext:Anchor>
                            </Anchors>
                        </ext:FormLayout>
                    </Items>
                </ext:FormPanel>
                <ext:FormPanel ID="PanelHistory" runat="server" Title="既往史"  BodyStyle="padding:25px;" AutoScroll="true">
                    <Items>
                        <ext:FormLayout ID="FormLayout5" runat="server">
                            <Anchors>
                                <ext:Anchor Horizontal="88%">
                                    <ext:FieldSet ID="FieldSetHistoryFamily" runat="server" Title="家族史" Height="150" CheckboxToggle="true" Collapsed="true">
                                        <Items>
                                            <ext:FormLayout ID="FormLayout8" runat="server">
                                                <Anchors>
                                                    <ext:Anchor Horizontal="88%">
                                                        <ext:Panel ID="Panel10" runat="server" Border="false" Height="50">
                                                            <Items>
                                                                <ext:ColumnLayout ID="ColumnLayout3" runat="server">
                                                                    <Columns>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel11" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout12" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryFamilyKidney" HideLabel="true" BoxLabel="肾结石">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryFamilyUrine" HideLabel="true" BoxLabel="高钙尿">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel12" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout13" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryFamilyBlood" HideLabel="true" BoxLabel="高钙血症">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                    </Columns>
                                                               </ext:ColumnLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:Anchor>
                                                    <ext:Anchor Horizontal="88%">
                                                        <ext:TextArea ID="TextAreaHistoryFamily" runat="server" FieldLabel="其他" Height="50">
                                                        </ext:TextArea>
                                                    </ext:Anchor>
                                                </Anchors>
                                            </ext:FormLayout>
                                        </Items>
                                    </ext:FieldSet>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="88%">
                                    <ext:FieldSet ID="FieldSetHistoryEndocrine" runat="server" Title="内分泌史" Height="150" CheckboxToggle="true" Collapsed="true">
                                        <Items>
                                            <ext:FormLayout ID="FormLayout9" runat="server">
                                                <Anchors>
                                                    <ext:Anchor Horizontal="88%">
                                                        <ext:Panel ID="Panel13" runat="server" Border="false" Height="50">
                                                            <Items>
                                                                <ext:ColumnLayout ID="ColumnLayout4" runat="server">
                                                                    <Columns>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel14" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout10" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryEndocrinePrimary" HideLabel="true" BoxLabel="原发性甲旁亢">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryEndocrineUrine" HideLabel="true" BoxLabel="高钙尿">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                        <ext:LayoutColumn ColumnWidth="0.5">
                                                                            <ext:Panel ID="Panel15" runat="server" Border="false" Header="false" Width="280" >
                                                                                <Items>
                                                                                    <ext:FormLayout ID="FormLayout11" runat="server" LabelWidth="80">
                                                                                        <Anchors>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryEndocrineKidney" HideLabel="true" BoxLabel="肾小管酸中毒">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                            <ext:Anchor Horizontal="85%">
                                                                                                <ext:Checkbox runat="server" ID="CheckboxHistoryEndocrineVitaminD" HideLabel="true" BoxLabel="维生素D中毒">
                                                                                                </ext:Checkbox>
                                                                                            </ext:Anchor>
                                                                                        </Anchors>
                                                                                    </ext:FormLayout>
                                                                                </Items>
                                                                            </ext:Panel>
                                                                        </ext:LayoutColumn>
                                                                    </Columns>
                                                               </ext:ColumnLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:Anchor>
                                                    <ext:Anchor Horizontal="88%">
                                                        <ext:TextArea ID="TextAreaHistoryEndocrine" runat="server" FieldLabel="其他" Height="50">
                                                        </ext:TextArea>
                                                    </ext:Anchor>
                                                </Anchors>
                                            </ext:FormLayout>
                                        </Items>
                                    </ext:FieldSet>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="88%">
                                    <ext:Panel ID="Panel6" runat="server" Border="false" Height="30">
                                        <Items>
                                            <ext:ColumnLayout ID="ColumnLayout2" runat="server">
                                                <Columns>
                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                        <ext:Panel ID="Panel7" runat="server" Border="false" Header="false" Width="280" >
                                                            <Items>
                                                                <ext:FormLayout ID="FormLayout6" runat="server" LabelWidth="80">
                                                                    <Anchors>
                                                                        <ext:Anchor Horizontal="85%">
                                                                            <ext:Checkbox runat="server" ID="CheckboxHistorySurgery" HideLabel="true" BoxLabel="结石手术史" Height="30">
                                                                            </ext:Checkbox>
                                                                        </ext:Anchor>
                                                                    </Anchors>
                                                                </ext:FormLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:LayoutColumn>
                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                        <ext:Panel ID="Panel9" runat="server" Border="false" Header="false" Width="280" >
                                                            <Items>
                                                                <ext:FormLayout ID="FormLayout7" runat="server" LabelWidth="80">
                                                                    <Anchors>
                                                                        <ext:Anchor Horizontal="85%">
                                                                            <ext:Checkbox runat="server" ID="CheckboxHistoryPaishi" HideLabel="true" BoxLabel="排石史" Height="30">
                                                                            </ext:Checkbox>
                                                                        </ext:Anchor>
                                                                    </Anchors>
                                                                </ext:FormLayout>
                                                            </Items>
                                                        </ext:Panel>
                                                    </ext:LayoutColumn>
                                                </Columns>
                                           </ext:ColumnLayout>
                                        </Items>
                                    </ext:Panel>
                                </ext:Anchor>
                                <ext:Anchor Horizontal="88%">
                                    <ext:TextArea ID="TextAreaHistoryMedicine" runat="server" FieldLabel="服药史" Height="100">
                                    </ext:TextArea>
                                </ext:Anchor>
                            </Anchors>
                        </ext:FormLayout>
                    </Items>
                </ext:FormPanel>
                <ext:Panel ID="PanelHospital" runat="server" Border="false" Region="Center" Layout="Fit" Title="就医信息">
                    <Items>
                        <ext:GridPanel runat="server" ID="GridPanelHospital" StoreID="StoreHospital" Frame="true" SelectionMemory="Enabled" AutoScroll="true">
                            <ColumnModel ID="Columnmodel2" runat="server">
                                <Columns>
                                    <ext:Column ColumnID="time" DataIndex="time" Width="100" Header="就医时间">
                                    </ext:Column>
                                    <ext:Column ColumnID="chemistry" DataIndex="chemistry" Width="80" Header="化验检查">
                                    </ext:Column>
                                    <ext:Column ColumnID="optics" DataIndex="optics" Width="80" Header="光学诊断">
                                    </ext:Column>
                                    <ext:Column ColumnID="surgery" DataIndex="surgery" Width="80" Header="手术">
                                    </ext:Column>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server">
                                    <Listeners>
                                        <RowSelect Fn="HospitalRowSelect" />
                                        <RowDeselect Fn="HospitalRowDeselect" />
                                    </Listeners>
                                </ext:CheckboxSelectionModel>
                                <%--<ext:RowSelectionModel runat="server" SingleSelect="true">
                                </ext:RowSelectionModel>--%>
                            </SelectionModel>
                            <Listeners>
                                <RowDblClick Fn="HospitalRowDbClick" />
                            </Listeners>
                            <LoadMask ShowMask="true" Msg="正在获取数据。。。" />
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar2" runat="server" PageSize="10" StoreID="StoreHospital"
                                    DisplayInfo="true" DisplayMsg="显示就医信息 {0} - {1} of {2}" EmptyMsg="没有就医信息可以显示">
                                    <Items>
                                        <ext:ComboBox ID="ComboBox2" runat="server" Width="80">
                                            <Items>
                                                <ext:ListItem Text="每页10条" Value="10" />
                                                <ext:ListItem Text="每页20条" Value="20" />
                                                <ext:ListItem Text="每页25条" Value="25" />
                                                <ext:ListItem Text="每页30条" Value="30" />
                                            </Items>
                                            <SelectedItem Text="每页20条" Value="20" />
                                            <Listeners>
                                                <Select Handler="#{PagingToolbar2}.pageSize=parseInt(record.data.value);#{PagingToolbar2}.doLoad(0);" />
                                            </Listeners>
                                        </ext:ComboBox>
                                    </Items>
                                </ext:PagingToolbar>
                            </BottomBar>
                            <TopBar>
                                <ext:Toolbar ID="Toolbar2" runat="server">
                                    <Items>
                                        <ext:Button ID="ButtonAddHospital" runat="server" Text="添加新就医信息" Width="100"  Icon="Add">
                                            <Listeners>
                                                <Click Fn="AddHospitalInfo" />
                                            </Listeners>
                                        </ext:Button>
                                        <ext:Button ID="ButtonDelHospital" runat="server" Text="删除" Icon="Delete" Disabled="true">
                                            <Listeners>
                                                <Click Fn="DeleteHospitalInfo" />
                                            </Listeners>
                                        </ext:Button>
                                        <ext:Button ID="ButtonEditHospital" runat="server" Text="编辑" Icon="ApplicationFormEdit" Disabled="true">
                                            <Listeners>
                                                <Click Fn="EditHospitalInfo" />
                                            </Listeners>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                        </ext:GridPanel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:TabPanel>
    </Items>
    <Buttons>
        <ext:Button ID="ButtonSave" runat="server" Text="保存" Icon="Disk">
            <%--<DirectEvents>
                <Click OnEvent="SavePatient" Before="return checkValidBeforeCommit(#{PanelBasicInfo}, #{PanelHistory}, #{PanelHospital})">
                    <EventMask ShowMask="true" Msg="正在保存，请稍候..." />
                </Click>
            </DirectEvents>--%>
            <Listeners>
                <Click Fn = "SavePatient" />
            </Listeners>
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                <Click Handler="#{WindowPatientInfo}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>

<ext:Window ID="WindowQuery" runat="server" Resizable="false" Width="800" Height="200" AutoShow="false" Modal="true" Hidden="true" 
     Constrain="true" Title="高级查询" BodyStyle="padding:25px;" Layout="Form">
    <Items>
        <ext:CompositeField ID="CompositeFieldQuery1" runat="server" FieldLabel="查询条件1">
            <Items>
                <ext:ComboBox ID="ComboBoxQuery1Chemistry" runat="server" AllowBlank="false" Width="150" Editable="false">
                    <Items>
                        <ext:ListItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                        <ext:ListItem Text="淋巴细胞" Value="tb_chemistry_lymphocyte" />
                        <ext:ListItem Text="免疫功能" Value="tb_chemistry_immunity" />
                        <ext:ListItem Text="血常规" Value="tb_chemistry_blood" />
                        <ext:ListItem Text="尿常规" Value="tb_chemistry_urine" />
                        <ext:ListItem Text="凝血功能" Value="tb_chemistry_cruor" />
                        <ext:ListItem Text="血生化" Value="tb_chemistry_biochemistry" />
                        <ext:ListItem Text="精液检查" Value="tb_chemistry_sperm" />
                        <ext:ListItem Text="前列腺液分析" Value="tb_chemistry_pg" />
                        <ext:ListItem Text="中段尿培养及药敏" Value="urine_drug" />
                        <ext:ListItem Text="结石细菌培养及药敏" Value="stone_drug" />
                        <ext:ListItem Text="结石成分分析" Value="ingredient" />
                        <ext:ListItem Text="光学诊断" Value="tb_optics" />
                    </Items>
                    <SelectedItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                    <Listeners>
                        <Select Fn="ComboBoxQuery1ChemistrySelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery1Item" runat="server" Width="150" Editable="false"
                     StoreID="StoreQuery1Item" ValueField="value" DisplayField="text" TypeAhead="true">
                    <Listeners>
                        <Select Fn="ComboBoxQuery1ItemSelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery1Operation" runat="server" AllowBlank="false" BlankText="请选择运算符" Width="60" Editable="false">
                    <Items>
                        <ext:ListItem Text=">" Value=" > " />
                        <ext:ListItem Text="=" Value=" = " />
                        <ext:ListItem Text="<" Value=" < " />
                        <%--<ext:ListItem Text="包含" Value=" LIKE " />--%>
                    </Items>
                    <SelectedItem Text=">" Value=" > " />
                </ext:ComboBox>
                <ext:TextField ID="TextFieldQuery1Value" runat="server" BlankText="请输入运算值" Width="150">
                </ext:TextField>
                <ext:ComboBox ID="ComboBoxQuery1Flag" runat="server" AllowBlank="false" Width="60">
                    <Items>
                        <ext:ListItem Text="结束" Value="0" />
                        <ext:ListItem Text="且" Value=" AND " />
                        <ext:ListItem Text="或" Value=" OR " />
                    </Items>
                    <SelectedItem Text="结束" Value="0" />
                    <Listeners>
                        <Select Handler="if(index!=0)#{CompositeFieldQuery2}.show();else #{CompositeFieldQuery2}.hide();" />
                    </Listeners>
                </ext:ComboBox>
            </Items>
        </ext:CompositeField>
        <ext:CompositeField ID="CompositeFieldQuery2" runat="server" FieldLabel="查询条件2" Hidden="true">
            <Items>
                <ext:ComboBox ID="ComboBoxQuery2Chemistry" runat="server" AllowBlank="false" BlankText="请选择化验种类" Width="150" Editable="false">
                    <Items>
                        <ext:ListItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                        <ext:ListItem Text="淋巴细胞" Value="tb_chemistry_lymphocyte" />
                        <ext:ListItem Text="免疫功能" Value="tb_chemistry_immunity" />
                        <ext:ListItem Text="血常规" Value="tb_chemistry_blood" />
                        <ext:ListItem Text="尿常规" Value="tb_chemistry_urine" />
                        <ext:ListItem Text="凝血功能" Value="tb_chemistry_cruor" />
                        <ext:ListItem Text="血生化" Value="tb_chemistry_biochemistry" />
                        <ext:ListItem Text="精液检查" Value="tb_chemistry_sperm" />
                        <ext:ListItem Text="前列腺液分析" Value="tb_chemistry_pg" />
                        <ext:ListItem Text="中段尿培养及药敏" Value="urine_drug" />
                        <ext:ListItem Text="结石细菌培养及药敏" Value="stone_drug" />
                        <ext:ListItem Text="结石成分分析" Value="ingredient" />
                        <ext:ListItem Text="光学诊断" Value="tb_optics" />
                    </Items>
                    <SelectedItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                    <Listeners>
                        <Select Fn="ComboBoxQuery2ChemistrySelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery2Item" runat="server" Width="150" Editable="false"
                     StoreID="StoreQuery2Item" ValueField="value" DisplayField="text" TypeAhead="true">
                    <Listeners>
                        <Select Fn="ComboBoxQuery2ItemSelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery2Operation" runat="server" AllowBlank="false" Width="60" Editable="false">
                    <Items>
                        <ext:ListItem Text=">" Value=" > " />
                        <ext:ListItem Text="=" Value=" = " />
                        <ext:ListItem Text="<" Value=" < " />
                        <%--<ext:ListItem Text="包含" Value=" LIKE " />--%>
                    </Items>
                    <SelectedItem Text=">" Value=" > " />
                </ext:ComboBox>
                <ext:TextField ID="TextFieldQuery2Value" runat="server" BlankText="请输入运算值" Width="150">
                </ext:TextField>
                <ext:ComboBox ID="ComboBoxQuery2Flag" runat="server" AllowBlank="false" Width="60" Editable="false">
                    <Items>
                        <ext:ListItem Text="结束" Value="0" />
                        <ext:ListItem Text="且" Value=" AND " />
                        <ext:ListItem Text="或" Value=" OR " />
                    </Items>
                    <SelectedItem Text="结束" Value="0" />
                    <Listeners>
                        <Select Handler="if(index!=0)#{CompositeFieldQuery3}.show();else #{CompositeFieldQuery3}.hide();" />
                    </Listeners>
                </ext:ComboBox>
            </Items>
        </ext:CompositeField>
        <ext:CompositeField ID="CompositeFieldQuery3" runat="server" FieldLabel="查询条件3" Hidden="true">
            <Items>
                <ext:ComboBox ID="ComboBoxQuery3Chemistry" runat="server" AllowBlank="false" Width="150" Editable="false">
                    <Items>
                        <ext:ListItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                        <ext:ListItem Text="淋巴细胞" Value="tb_chemistry_lymphocyte" />
                        <ext:ListItem Text="免疫功能" Value="tb_chemistry_immunity" />
                        <ext:ListItem Text="血常规" Value="tb_chemistry_blood" />
                        <ext:ListItem Text="尿常规" Value="tb_chemistry_urine" />
                        <ext:ListItem Text="凝血功能" Value="tb_chemistry_cruor" />
                        <ext:ListItem Text="血生化" Value="tb_chemistry_biochemistry" />
                        <ext:ListItem Text="精液检查" Value="tb_chemistry_sperm" />
                        <ext:ListItem Text="前列腺液分析" Value="tb_chemistry_pg" />
                        <ext:ListItem Text="中段尿培养及药敏" Value="urine_drug" />
                        <ext:ListItem Text="结石细菌培养及药敏" Value="stone_drug" />
                        <ext:ListItem Text="结石成分分析" Value="ingredient" />
                        <ext:ListItem Text="光学诊断" Value="tb_optics" />
                    </Items>
                    <SelectedItem Text="24小时尿" Value="tb_chemistry_urine24h" />
                    <Listeners>
                        <Select Fn="ComboBoxQuery3ChemistrySelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery3Item" runat="server" Width="150" Editable="false"
                     StoreID="StoreQuery3Item" ValueField="value" DisplayField="text" TypeAhead="true">
                    <Listeners>
                        <Select Fn="ComboBoxQuery3ItemSelect" />
                    </Listeners>
                </ext:ComboBox>
                <ext:ComboBox ID="ComboBoxQuery3Operation" runat="server" AllowBlank="false" BlankText="请选择运算符" Width="60" Editable="false">
                    <Items>
                        <ext:ListItem Text=">" Value=" > " />
                        <ext:ListItem Text="=" Value=" = " />
                        <ext:ListItem Text="<" Value=" < " />
                        <%--<ext:ListItem Text="包含" Value=" LIKE " />--%>
                    </Items>
                    <SelectedItem Text=">" Value=" > " />
                </ext:ComboBox>
                <ext:TextField ID="TextFieldQuery3Value" runat="server" BlankText="请输入运算值" Width="150">
                </ext:TextField>
                <ext:ComboBox ID="ComboBoxQuery3Flag" runat="server" AllowBlank="false" Width="60" Editable="false">
                    <Items>
                        <ext:ListItem Text="结束" Value="0" />
                    </Items>
                    <SelectedItem Text="结束" Value="0" />
                </ext:ComboBox>
            </Items>
        </ext:CompositeField>
    </Items>
    <Buttons>
        <ext:Button ID="ButtonQuery" runat="server" Text="查询" Icon="Disk">
            <%--<DirectEvents>
                <Click OnEvent="SavePatient" Failure="handleException(result, response);" 
                Before="if ((#{terminalId}.getValue().indexOf(',') != -1)||#{terminalId}.getValue().indexOf(':')!=-1) return true;
                else return PageMethods.checkValidBeforeCommit(#{FormPanel1}, #{FormPanel2}, #{FormPanel3}, #{FormPanel4})">
                    <EventMask ShowMask="true" Msg="正在保存，请稍候..." />
                </Click>
            </DirectEvents>--%>
            <Listeners>
                <Click Fn="QueryPatients" />
            </Listeners>
        </ext:Button>
        <ext:Button ID="ButtonQueryCancel" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                <Click Handler="#{WindowQuery}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>

<ext:Window runat="server" ID="WindowHospitalInfo" Resizable="false" Width="800" Height="650" AutoShow="false" Modal="true" Hidden="true" 
     Constrain="true" Title="添加新就医信息" Layout="Fit" BodyStyle="padding:10px;">
    <Items>
        <ext:FormLayout ID="FormLayout25" runat="server">
            <Anchors>
                <ext:Anchor Horizontal="40%">
                    <ext:DateField runat="server" ID="DateFieldHospitalInfo" FieldLabel="就医时间" AllowBlank="false" Width="200" Editable="false">
                    </ext:DateField>
                </ext:Anchor>
               <ext:Anchor>
                    <ext:CheckboxGroup ID="CheckboxGroupHospitalInfo" runat="server">
                        <Items>
                            <ext:Checkbox ID="CheckboxChemistry" runat="server" BoxLabel="化验检查" Checked="false" >
                                <Listeners>
                                    <Check Handler="if(#{CheckboxChemistry}.getValue())#{PanelHospitalChemistry}.enable();else #{PanelHospitalChemistry}.disable();#{TabPanelNewHospitalInfo}.activate('PanelHospitalChemistry');" />
                                </Listeners>
                            </ext:Checkbox>
                            <ext:Checkbox ID="CheckboxOptics" runat="server" BoxLabel="光学检查" Checked="false" >
                                <Listeners>
                                    <Check Handler="if(#{CheckboxOptics}.getValue())#{PanelHospitalOptics}.enable();else #{PanelHospitalOptics}.disable();#{TabPanelNewHospitalInfo}.activate('PanelHospitalOptics');" />
                                </Listeners>
                            </ext:Checkbox>
                            <ext:Checkbox ID="CheckboxSurgery" runat="server" BoxLabel="手术" Checked="false" >
                                <Listeners>
                                    <Check Handler="if(#{CheckboxSurgery}.getValue())#{PanelHospitalSurgery}.enable();else #{PanelHospitalSurgery}.disable();#{TabPanelNewHospitalInfo}.activate('PanelHospitalSurgery');" />
                                </Listeners>
                            </ext:Checkbox>
                        </Items>
                    </ext:CheckboxGroup> 
                </ext:Anchor>

                <ext:Anchor>
                    <ext:Hidden runat="server" ID="HiddenHospitalId" Text="">
                    </ext:Hidden>
                </ext:Anchor>
                    <ext:Anchor Horizontal="100%">
                        <ext:TabPanel ID="TabPanelNewHospitalInfo" runat="server" Header="false" Height="500">
                            <Items>
                                <ext:FormPanel ID="PanelHospitalChemistry" runat="server" Title="化验检查" BodyStyle="padding:15px;" AutoScroll="true">
                                    <Items>
                                        <ext:FormLayout ID="FormLayout16" runat="server" LabelWidth="100">
                                            <Anchors>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryBlood" runat="server" Title="血常规" Height="300" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout ID="ColumnLayout8" runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel ID="Panel16" runat="server" Border="false" Header="false" Width="280" Height="210" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout17" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodWBC" runat="server" FieldLabel="WBC(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodLYMl" runat="server" FieldLabel="LYM#(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodM0l" runat="server" FieldLabel="M0(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodGRANl" runat="server" FieldLabel="GRAN#(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodE0l" runat="server" FieldLabel="E0#(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodBAS0l" runat="server" FieldLabel="BAS0#(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodLYMp" runat="server" FieldLabel="LYM%(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodM0p" runat="server" FieldLabel="M0%(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel ID="Panel19" runat="server" Border="false" Header="false" Width="280" Height="210" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout20" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodE0p" runat="server" FieldLabel="E0%(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodBAS0p" runat="server" FieldLabel="BAS0%(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodGRANp" runat="server" FieldLabel="GRAN%(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodRBC" runat="server" FieldLabel="RBC(10^12/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodHGB" runat="server" FieldLabel="HGB(g/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodHCT" runat="server" FieldLabel="HCT(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryBloodPLT" runat="server" FieldLabel="PLT(10^9/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryCruor" runat="server" Title="凝血功能" Height="300" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout ID="ColumnLayout5" runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="75" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorPT" runat="server" FieldLabel="PT(s)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorAPTT" runat="server" FieldLabel="APTT(s)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorTT" runat="server" FieldLabel="TT(s)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel ID="Panel17" runat="server" Border="false" Header="false" Width="280" Height="75" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorFIB" runat="server" FieldLabel="FIB(g/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorFDP" runat="server" FieldLabel="FDP(ug/ml)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryCruorD2" runat="server" FieldLabel="D-二聚体(ug/ml)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetChemistryUrine" runat="server" Title="尿常规" Height="300" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="180" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout23" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineBZ" runat="server" FieldLabel="比重" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineSJD" runat="server" FieldLabel="酸碱度" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineWhite" runat="server" FieldLabel="白细胞(ul)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineYXSY" runat="server" FieldLabel="亚硝酸盐" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineDBZ" runat="server" FieldLabel="蛋白质(g/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineRCul" runat="server" FieldLabel="红细胞计数(ul)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineRChp" runat="server" FieldLabel="红细胞计数(HP)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="180" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout24" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineWCul" runat="server" FieldLabel="白细胞计数(ul)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineWChp" runat="server" FieldLabel="白细胞计数(HP)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineGCul" runat="server" FieldLabel="管型计数(ul)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineGChp" runat="server" FieldLabel="管型计数(LP)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineBLGX" runat="server" FieldLabel="病理管型" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryUrineJJ" runat="server" FieldLabel="结晶" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryMygn" runat="server" Title="免疫功能" Height="150" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout ID="ColumnLayout6" runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel ID="Panel18" runat="server" Border="false" Header="false" Width="280" Height="100" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityIL2" runat="server" FieldLabel="IL-2(ng/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityIL6" runat="server" FieldLabel="IL-6(ng/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityIL8" runat="server" FieldLabel="IL-8(ng/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityIL10" runat="server" FieldLabel="IL-10(ng/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="100" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityTNFa" runat="server" FieldLabel="TNF a(ng/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityCRP" runat="server" FieldLabel="CRP(mg/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryImmunityNms" runat="server" FieldLabel="内霉素(pg/ml)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryLbxb" runat="server" Title="淋巴细胞" Height="150" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="100" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbCD3" runat="server" FieldLabel="CD3(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbCD4" runat="server" FieldLabel="CD4(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbCD8" runat="server" FieldLabel="CD8(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbCD19" runat="server" FieldLabel="CD19(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="100" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout22" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbCD1656" runat="server" FieldLabel="CD16/56(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbTBNK" runat="server" FieldLabel="T+B+NK(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryLbxbHS" runat="server" FieldLabel="H/S(%)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryXsh" runat="server" Title="血生化" Height="200" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="180" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshNS2" runat="server" FieldLabel="尿素(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshNa" runat="server" FieldLabel="钠(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshKa" runat="server" FieldLabel="钾(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshCl" runat="server" FieldLabel="氯(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshCS" runat="server" FieldLabel="草酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshCa" runat="server" FieldLabel="钙(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshBDB" runat="server" FieldLabel="白蛋白(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="180" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshPTT" runat="server" FieldLabel="葡萄糖(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshJG" runat="server" FieldLabel="肌酐(umol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshNS" runat="server" FieldLabel="尿酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshGYS" runat="server" FieldLabel="枸橼酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshL" runat="server" FieldLabel="磷(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="ChemistryXshCO2" runat="server" FieldLabel="二氧化碳结合力(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistry24hN" runat="server" Title="24小时尿" Height="180" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:ColumnLayout ID="ColumnLayout10" runat="server">
                                                                <Columns>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel runat="server" Border="false" Header="false" Width="280" Height="160" >
                                                                            <Items>
                                                                                <ext:FormLayout runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNSJD" runat="server" FieldLabel="酸碱度" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNCa" runat="server" FieldLabel="钙(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNNa" runat="server" FieldLabel="钠(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNKa" runat="server" FieldLabel="钾(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNCl" runat="server" FieldLabel="氯(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNCS" runat="server" FieldLabel="草酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                    <ext:LayoutColumn ColumnWidth="0.5">
                                                                        <ext:Panel ID="Panel23" runat="server" Border="false" Header="false" Width="280" Height="160" >
                                                                            <Items>
                                                                                <ext:FormLayout ID="FormLayout21" runat="server">
                                                                                    <Anchors>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNPTT" runat="server" FieldLabel="葡萄糖(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNJG" runat="server" FieldLabel="肌酐(umol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNL" runat="server" FieldLabel="磷(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNNS" runat="server" FieldLabel="尿酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                        <ext:Anchor Horizontal="85%">
                                                                                            <ext:NumberField ID="Chemistry24hNGYS" runat="server" FieldLabel="枸橼酸(mmol/L)" 
                                                                                                 AllowNegative="false" MaxLength="7"></ext:NumberField>
                                                                                        </ext:Anchor>
                                                                                    </Anchors>
                                                                                </ext:FormLayout>
                                                                            </Items>
                                                                        </ext:Panel>
                                                                    </ext:LayoutColumn>
                                                                </Columns>
                                                           </ext:ColumnLayout>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistrySperm" runat="server" Title="精液检查" Height="180" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:NumberField ID="ChemistrySpermCount" runat="server" FieldLabel="精子计数(/ml)" 
                                                                 AllowNegative="false" MaxLength="7" AllowDecimals="false"></ext:NumberField>
                                                            <ext:NumberField ID="ChemistrySpermRate" runat="server" FieldLabel="精子活动率(%)" 
                                                                 AllowNegative="false" MaxLength="3" AllowDecimals="false"></ext:NumberField>
                                                            <ext:TextField ID="ChemistrySpermPower" runat="server" FieldLabel="精子活动力" Width="600">
                                                            </ext:TextField>
                                                            <ext:TextField ID="ChemistrySpermStatus" runat="server" FieldLabel="精子形态" Width="600">
                                                            </ext:TextField>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:FieldSet ID="FieldSetHospitalChemistryPG" runat="server" Title="前列腺液分析" Height="180" CheckboxToggle="true" Collapsed="true">
                                                        <Items>
                                                            <ext:TextField ID="ChemistryPGLecithin" runat="server" FieldLabel="卵磷脂小体" Width="600">
                                                            </ext:TextField>
                                                            <ext:TextField ID="ChemistryPGRbc" runat="server" FieldLabel="红细胞" Width="600">
                                                            </ext:TextField>
                                                            <ext:TextField ID="ChemistryPGWbc" runat="server" FieldLabel="白细胞" Width="600">
                                                            </ext:TextField>
                                                        </Items>
                                                    </ext:FieldSet>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:TextArea ID="TextAreaHospitalChemistryZdnpyjym" runat="server" FieldLabel="中段尿培养及药敏" Height="100">
                                                    </ext:TextArea>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:TextArea ID="TextAreaHospitalChemistryJsxjpyjym" runat="server" FieldLabel="结石细菌培养及药敏" Height="100">
                                                    </ext:TextArea>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="95%">
                                                    <ext:TextArea ID="TextAreaHospitalChemistryJscffx" runat="server" FieldLabel="结石成分分析" Height="100">
                                                    </ext:TextArea>
                                                </ext:Anchor>
                                            </Anchors>
                                        </ext:FormLayout>
                                    </Items>
                                </ext:FormPanel>
                                <ext:FormPanel ID="PanelHospitalOptics" runat="server" Title="光学诊断" BodyStyle="padding:25px;" LabelWidth="150">
                                    <Items>
                                        <ext:CompositeField ID="CompositeFieldOpticsB" runat="server" FieldLabel="B超图像文件">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldOpticsB" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected  Fn="UploadOpticsB" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsBDownload" runat="server" Text="下载" Icon="ArrowDown" Disabled="true">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileOpticsB();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsBDelete" runat="server" Text="删除" Icon="Cancel" Disabled="true">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteOpticsB();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenOpticsBFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:CompositeField ID="CompositeFieldOpticsCT" runat="server" FieldLabel="CT图像文件">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldOpticsCT" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected Fn="UploadOpticsCT" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsCTDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileOpticsCT();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsCTDelete" runat="server" Text="删除" Icon="Cancel">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteOpticsCT();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenOpticsCTFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:CompositeField ID="CompositeFieldOpticsCTU" runat="server" FieldLabel="CTU图像文件">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldOpticsCTU" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected Fn="UploadOpticsCTU" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsCTUDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileOpticsCTU();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsCTUDelete" runat="server" Text="删除" Icon="Cancel">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteOpticsCTU();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenOpticsCTUFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:CompositeField ID="CompositeFieldOpticsKUBIVP" runat="server" FieldLabel="KUB+IVP图像文件">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldOpticsKUBIVP" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected Fn="UploadOpticsKUBIVP" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsKUBIVPDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileOpticsKUBIVP();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsKUBIVPDelete" runat="server" Text="删除" Icon="Cancel">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteOpticsKUBIVP();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenOpticsKUBIVPFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:CompositeField ID="CompositeFieldOpticsECT" runat="server" FieldLabel="ECT图像文件" Height="50">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldOpticsECT" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected Fn="UploadOpticsECT" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsECTDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileOpticsECT();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonOpticsECTDelete" runat="server" Text="删除" Icon="Cancel">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteOpticsECT();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenOpticsECTFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:NumberField ID="NumberFieldOpticsCT" runat="server" FieldLabel="结合CT值" MaxLength="7" AllowDecimals="false"></ext:NumberField>
                                        <ext:NumberField ID="NumberFieldOpticsAngle" runat="server" FieldLabel="下盏和剩余的夹脚" MaxLength="7"></ext:NumberField>
                                        <ext:NumberField ID="NumberFieldOpticsGFR" runat="server" FieldLabel="GFR值" MaxLength="7"></ext:NumberField>
                                        <ext:TextArea ID="TextAreaOpticsComment" runat="server" FieldLabel="其他" Height="100" Width="400"></ext:TextArea>
                                    </Items>
                                </ext:FormPanel>
                                <ext:FormPanel ID="PanelHospitalSurgery" runat="server" Title="手术信息" BodyStyle="padding:15px;" AutoScroll="true" LabelWidth="100" Layout="Form">
                                    <Items>
                                        <ext:DateField ID="DateFieldSurgery" runat="server" FieldLabel="手术日期" AllowBlank="false"  Width="200"/>
                                        <ext:RadioGroup ID="RadioGroupSurgeryStonePosition" runat="server" FieldLabel="肾的左右" Width="400" Height="20">
                                            <Items>
                                                <ext:Radio ID="RadioSurgeryStoneLeft" runat="server" BoxLabel="左" Checked="true"/>
                                                <ext:Radio ID="RadioSurgeryStoneRight" runat="server" BoxLabel="右" />
                                                <ext:Radio ID="RadioSurgeryStoneAll" runat="server" BoxLabel="都有" />
                                            </Items>
                                        </ext:RadioGroup> 
                                        <ext:NumberField ID="NumberFieldSurgeryStoneSize" runat="server" FieldLabel="结石大小" MaxLength="7" AllowNegative="false" Width="200"></ext:NumberField>
                                        <ext:TextArea ID="TextAreaSurgeryStonePosition" runat="server" FieldLabel="结石位置" Height="50" Width="500"></ext:TextArea>
                                        <ext:TextArea ID="TextAreaSurgeryStoneRemain" runat="server" FieldLabel="结石残留" Height="50" Width="500"></ext:TextArea>
                                        <ext:CompositeField ID="CompositeFieldSurgeryRecord" runat="server" FieldLabel="录像文件" Width="500">
                                            <Items>
                                                <ext:FileUploadField ID="FileUploadFieldSurgeryRecord" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                    <Listeners>
                                                        <FileSelected Fn="UploadSurgeryRecord" />
                                                    </Listeners>
                                                </ext:FileUploadField>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonSurgeryRecordDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DownloadFileSurgeryRecord();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:ToolbarSpacer Width="30" />
                                                <ext:Button ID="ButtonSurgeryRecordDelete" runat="server" Text="删除" Icon="Cancel">
                                                    <Listeners>
                                                        <Click Handler="Ext.net.DirectMethods.DeleteSurgeryRecord();" />
                                                    </Listeners>
                                                </ext:Button>
                                                <ext:Hidden ID="HiddenSurgeryRecordFileId" runat="server"></ext:Hidden>
                                            </Items>
                                        </ext:CompositeField>
                                        <ext:RadioGroup ID="RadioGroupSurgery" runat="server" FieldLabel="手术方式" Width="400">
                                            <Items>
                                                <ext:Radio ID="RadioSurgeryKidney" runat="server" BoxLabel="经皮肾镜" Checked="true"/>
                                                <ext:Radio ID="RadioSurgerySoft" runat="server" BoxLabel="输尿管软镜" />
                                                <ext:Radio ID="RadioSurgeryHard" runat="server" BoxLabel="输尿管硬镜" />
                                                <ext:Radio ID="RadioSurgeryPG" runat="server" BoxLabel="前列腺手术" />
                                                <ext:Radio ID="RadioSurgerySperm" runat="server" BoxLabel="精囊镜" />
                                            </Items>
                                            <Listeners>
                                                <Change Fn="RadioSurgerySelect" />
                                            </Listeners>
                                        </ext:RadioGroup> 
                                        <ext:TabPanel runat="server" ID="TabPanelSurgery" Width="680" DeferredRender="false">
                                            <Items>
                                                <ext:Panel runat="server" ID="PanelSurgeryKidney" Title="经皮肾镜" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form">
                                                    <Items>
                                                        <ext:NumberField ID="NumberFieldSurgeryKidneyChannel" runat="server" FieldLabel="通道" 
                                                            AllowNegative="false" AllowDecimals="false" MaxLength="7"></ext:NumberField>
                                                        <ext:ComboBox ID="ComboBoxSurgeryKidneyChannelSize" runat="server" FieldLabel="通道大小" Editable="false">
                                                            <Items>
                                                                <ext:ListItem Text="18" Value="18" />
                                                                <ext:ListItem Text="20" Value="20" />
                                                                <ext:ListItem Text="22" Value="22" />
                                                                <ext:ListItem Text="24" Value="24" />
                                                                <ext:ListItem Text="26" Value="26" />
                                                                <ext:ListItem Text="30" Value="30" />
                                                            </Items>
                                                            <SelectedItem Text="18" Value="18" />
                                                        </ext:ComboBox>
                                                        <ext:ComboBox ID="ComboBoxSurgeryKidneyEnter" runat="server" FieldLabel="肾盏入路" Editable="false">
                                                            <Items>
                                                                <ext:ListItem Text="上" Value="Up" />
                                                                <ext:ListItem Text="中" Value="Mid" />
                                                                <ext:ListItem Text="下" Value="Down" />
                                                                <ext:ListItem Text="上中" Value="UpMid" />
                                                                <ext:ListItem Text="中下" Value="MidDown" />
                                                                <ext:ListItem Text="上下" Value="UpDown" />
                                                                <ext:ListItem Text="上中下" Value="UpMidDown" />
                                                            </Items>
                                                            <SelectedItem Text="上" Value="Up" />
                                                        </ext:ComboBox>
                                                        <ext:Checkbox ID="CheckboxSurgeryKidneyBlood" runat="server" BoxLabel="肾出血" />
                                                        <ext:RadioGroup ID="RadioGroupSurgeryKidneyTreat" runat="server" FieldLabel="治疗方式" Width="400">
                                                            <Items>
                                                                <ext:Radio ID="RadioSurgeryKidneyTreatKeep" runat="server" BoxLabel="保守治疗" Checked="true"/>
                                                                <ext:Radio ID="RadioSurgeryKidneyTreatOpen" runat="server" BoxLabel="开放治疗" />
                                                            </Items>
                                                        </ext:RadioGroup>
                                                        <ext:CompositeField ID="CompositeFieldSurgeryKidneyDSARecord" runat="server" FieldLabel="DSA录像文件" Height="30">
                                                            <Items>
                                                                <ext:FileUploadField ID="FileUploadFieldSurgeryKidneyDSARecord" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                                    <Listeners>
                                                                        <FileSelected Fn="UploadSurgeryKidneyDSARecord" />
                                                                    </Listeners>
                                                                </ext:FileUploadField>
                                                                <ext:ToolbarSpacer Width="30" />
                                                                <ext:Button ID="ButtonSurgeryKidneyDSARecordDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                                    <Listeners>
                                                                         <Click Handler="Ext.net.DirectMethods.DownloadFileSurgeryKidneyDSARecord();" />
                                                                    </Listeners>
                                                                </ext:Button>
                                                                <ext:ToolbarSpacer Width="30" />
                                                                <ext:Button ID="ButtonSurgeryKidneyDSARecordDelete" runat="server" Text="删除" Icon="Cancel">
                                                                    <Listeners>
                                                                        <Click Handler="Ext.net.DirectMethods.DeleteSurgeryKidneyDSARecord();" />
                                                                    </Listeners>
                                                                </ext:Button>
                                                               <ext:Hidden ID="HiddenSurgeryKidneyDSARecordFileId" runat="server"></ext:Hidden>
                                                            </Items>
                                                        </ext:CompositeField>
                                                        <ext:CompositeField ID="CompositeFieldSurgeryKidneyRecord" runat="server" FieldLabel="手术录像文件" Height="30">
                                                            <Items>
                                                                <ext:FileUploadField ID="FileUploadFieldSurgeryKidneyRecord" runat="server" ButtonOnly="true" ButtonText="上传" Icon="ArrowUp">
                                                                    <Listeners>
                                                                        <FileSelected Fn="UploadSurgeryKidneyRecord" />
                                                                    </Listeners>
                                                                </ext:FileUploadField>
                                                                <ext:ToolbarSpacer Width="30" />
                                                                <ext:Button ID="ButtonSurgeryKidneyRecordDownload" runat="server" Text="下载" Icon="ArrowDown">
                                                                    <Listeners>
                                                                         <Click Handler="Ext.net.DirectMethods.DownloadFileSurgeryKidneyRecord();" />
                                                                    </Listeners>
                                                                </ext:Button>
                                                                <ext:ToolbarSpacer Width="30" />
                                                                <ext:Button ID="ButtonSurgeryKidneyRecordDelete" runat="server" Text="删除" Icon="Cancel">
                                                                    <Listeners>
                                                                        <Click Handler="Ext.net.DirectMethods.DeleteSurgeryKidneyRecord();" />
                                                                    </Listeners>
                                                                </ext:Button>
                                                                <ext:Hidden ID="HiddenSurgeryKidneyRecordFileId" runat="server"></ext:Hidden>
                                                            </Items>
                                                        </ext:CompositeField>
                                                    </Items>
                                                </ext:Panel>
                                                <ext:Panel runat="server" ID="PanelSurgerySoft" Title="输尿管软镜" Disabled="true" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form">
                                                    <Items>
                                                        <ext:Checkbox ID="CheckboxSurgerySoftSlit" runat="server" BoxLabel="输尿管撕裂" />
                                                        <ext:ComboBox ID="ComboBoxSurgerySoftExpansion" runat="server" FieldLabel="扩张鞘大小" Editable="false">
                                                            <Items>
                                                                <ext:ListItem Text="8" Value="8" />
                                                                <ext:ListItem Text="10" Value="10" />
                                                                <ext:ListItem Text="12" Value="12" />
                                                                <ext:ListItem Text="14" Value="14" />
                                                            </Items>
                                                            <SelectedItem Text="8" Value="8" />
                                                        </ext:ComboBox>
                                                        <ext:TextField ID="TextFieldSurgerySoftBasket" runat="server" FieldLabel="套石篮" Width="500"></ext:TextField>
                                                        <%--<ext:FieldSet runat="server" ID="FieldSetSurgerySoftNarrow" Title="输尿管狭窄" CheckboxToggle="true" Collapsed="true">
                                                            <Items>
                                                                <ext:TextField ID="TextFieldSurgerySoftNarrow" runat="server" FieldLabel="输尿管狭窄位置" Width="600" LabelWidth="130"></ext:TextField>
                                                            </Items>
                                                        </ext:FieldSet>--%>
                                                        <ext:Checkbox ID="CheckboxSurgerySoftNarrow" runat="server" BoxLabel="输尿管狭窄" >
                                                            <Listeners>
                                                                <Check Handler="if(#{CheckboxSurgerySoftNarrow}.getValue())#{TextFieldSurgerySoftNarrow}.show();else #{TextFieldSurgerySoftNarrow}.hide();" />
                                                            </Listeners>
                                                        </ext:Checkbox>
                                                        <ext:TextField ID="TextFieldSurgerySoftNarrow" runat="server" FieldLabel="输尿管狭窄位置" Width="500" LabelWidth="130" Hidden="true"></ext:TextField>
                                                    </Items>
                                                </ext:Panel>
                                                <ext:Panel runat="server" ID="PanelSurgeryHard" Title="输尿管硬镜" Disabled="true" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form">
                                                    <Items>
                                                        <ext:Checkbox ID="CheckboxSurgeryHardSlit" runat="server" BoxLabel="输尿管撕裂" />
                                                        <%--<ext:FieldSet runat="server" ID="FieldSetSurgeryHardNarrow" Title="输尿管狭窄" CheckboxToggle="true" Collapsed="true">
                                                            <Items>
                                                                <ext:TextField ID="TextFieldSurgeryHardNarrow" runat="server" FieldLabel="输尿管狭窄位置" Width="600" LabelWidth="130"></ext:TextField>
                                                            </Items>
                                                        </ext:FieldSet>--%>
                                                        <ext:Checkbox ID="CheckboxSurgeryHardNarrow" runat="server" BoxLabel="输尿管狭窄" >
                                                            <Listeners>
                                                                <Check Handler="if(#{CheckboxSurgeryHardNarrow}.getValue())#{TextFieldSurgeryHardNarrow}.show();else #{TextFieldSurgeryHardNarrow}.hide();" />
                                                            </Listeners>
                                                        </ext:Checkbox>
                                                        <ext:TextField ID="TextFieldSurgeryHardNarrow" runat="server" FieldLabel="输尿管狭窄位置" Width="500" LabelWidth="130"></ext:TextField>
                                                    </Items>
                                                </ext:Panel>
                                                <ext:Panel runat="server" ID="PanelSurgeryPG" Title="前列腺手术" Disabled="true" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form">
                                                    <Items>
                                                        <ext:RadioGroup ID="RadioGroupSurgeryPG" runat="server" Width="400">
                                                            <Items>
                                                                <ext:Radio ID="RadioSurgeryPGPoint" runat="server" BoxLabel="点切" Checked="true"/>
                                                                <ext:Radio ID="RadioSurgeryPGLaser" runat="server" BoxLabel="激光" />
                                                            </Items>
                                                        </ext:RadioGroup>
                                                     </Items>
                                                </ext:Panel>
                                                <ext:Panel runat="server" ID="PanelSurgerySperm" Title="精囊镜" Disabled="true" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form">
                                                    <Items>
                                                        <ext:Checkbox ID="CheckboxSurgerySpermEms" runat="server" BoxLabel="EMS" />
                                                    </Items>
                                                </ext:Panel>
                                            </Items>
                                        </ext:TabPanel>
                                        <ext:Checkbox ID="CheckboxSurgeryInfection" runat="server" BoxLabel="感染" >
                                            <Listeners>
                                                <Check Handler="if(#{CheckboxSurgeryInfection}.getValue())#{panelSurgeryInfection}.show();else #{panelSurgeryInfection}.hide();" />
                                            </Listeners>
                                        </ext:Checkbox>
                                        <%--<ext:FieldSet runat="server" ID="FieldSetSurgeryInfection" Title="感染" CheckboxToggle="true" Collapsed="true" Width="680" Layout="Form">--%>
                                        <ext:Panel runat="server" ID="panelSurgeryInfection" BodyStyle="padding:10px;" AutoHeight="true" Width="680" Layout="Form" Border="true">
                                            <Items>
                                                <ext:Checkbox ID="CheckboxSurgeryInfectionFever" runat="server" BoxLabel="发热" />
                                                <ext:Checkbox ID="CheckboxSurgeryInfectionBlood" runat="server" BoxLabel="出血" />
                                                <ext:Checkbox ID="CheckboxSurgeryInfectionDisease" runat="server" BoxLabel="脓毒血症" >
                                                    <Listeners>
                                                        <Check Handler="if(#{CheckboxSurgeryInfectionDisease}.getValue())#{panelSurgeryInfectionDisease}.show();else #{panelSurgeryInfectionDisease}.hide();" />
                                                    </Listeners>
                                                </ext:Checkbox>
                                                <%--<ext:FieldSet runat="server" ID="FieldSetSurgeryInfectionDisease" Title="脓毒血症" CheckboxToggle="true" Collapsed="true">--%>
                                                <ext:Panel runat="server" ID="panelSurgeryInfectionDisease" BodyStyle="padding:10px;" AutoHeight="true" Layout="Form" Border="true">
                                                    <Items>
                                                        <ext:NumberField ID="NumberFieldSurgeryInfectionType" runat="server" FieldLabel="使用抗生素种类"
                                                             AllowNegative="false" AllowDecimals="false" MaxLength="7" LabelWidth="130"></ext:NumberField>
                                                        <ext:NumberField ID="NumberFieldSurgeryInfectionTime" runat="server" FieldLabel="使用抗生素时间" 
                                                            AllowNegative="false" AllowDecimals="false" MaxLength="7" LabelWidth="130"></ext:NumberField>
                                                        <ext:Checkbox ID="CheckboxSurgeryInfectionCure" runat="server" BoxLabel="是否成功治愈" />
                                                    </Items>
                                                </ext:Panel>
                                                <%--</ext:FieldSet>--%>
                                            </Items>
                                        </ext:Panel>
                                        <%--</ext:FieldSet>--%>
                                    </Items>
                                </ext:FormPanel>
                            </Items>
                        </ext:TabPanel>
                    </ext:Anchor>
            </Anchors>
        </ext:FormLayout>
    </Items> 
    <Buttons>
        <ext:Button ID="ButtonHospitalSave" runat="server" Text="保存" Icon="Disk">
            <%--<DirectEvents>
                <Click OnEvent="SaveHospitalInfo" Before="return checkValidBeforeCommit(#{PanelHospitalChemistry}, #{PanelHospitalOptics}, #{PanelHospitalSurgery})">
                    <EventMask ShowMask="true" Msg="正在保存，请稍候..." />
                </Click>
            </DirectEvents>--%>
            <Listeners>
                <Click Fn = "SaveHospitalInfo" />
            </Listeners>
        </ext:Button>
        <ext:Button ID="ButtonHospitalCancel" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                <Click Handler="#{WindowHospitalInfo}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>     

<ext:Window ID="WindowLogin" runat="server" Title="登陆" Icon="Application" Height="150px" Width="300px"  BodyStyle="background-color: #fff;"  Padding="5" 
    Collapsible="false" Closable="false" Modal="true" Hidden="true">
    <Defaults>
        <ext:Parameter Name="MsgTarget" Value="side">
        </ext:Parameter>
    </Defaults>
    <Items>
        <ext:FormLayout ID="FormLayout32" runat="server">
            <Anchors>
                <ext:Anchor>
                    <ext:TextField runat="server" ID="txtUserName" FieldLabel="账号" AllowBlank="false"
                        EnableKeyEvents="true" StyleSpec="ime-mode:disabled">
                        <Listeners>
                            <KeyDown Handler="if (e.getKey() == 13) txtPassword.focus();" />
                        </Listeners>
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:TextField runat="server" ID="txtPassword" InputType="Password" FieldLabel="密码"
                        EnableKeyEvents="true">
                        <Listeners>
                            <KeyDown Handler="if (e.getKey() == 13) btnLogin.fireEvent('click');" />
                        </Listeners>
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:Label runat="server" ID="lblInfo" Icon="Information" LabelSeparator="" Hidden="true"
                        HideLabel="true" HideMode="Display" HideParent="true" CtCls="label-info">
                    </ext:Label>
                </ext:Anchor>
            </Anchors>
        </ext:FormLayout>
    </Items>
    <Buttons>
        <ext:Button runat="server" ID="btnLogin" Text="登陆">
            <Listeners>
                <Click Handler="Ext.net.DirectMethods.DoLogin(txtUserName.getValue(), txtPassword.getValue());" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
</form>
</body>
</html>
